package top.hidoctor.auscultation.bean;

import java.util.List;

import lombok.Data;
import lombok.NoArgsConstructor;
import top.hidoctor.auscultation.widget.Player;

@NoArgsConstructor
@Data
public class SampleBean {

    /**
     * page : 1
     * pageSize : 10
     * result : [{"coordinate":"欠配合","createdTime":1609171200000,"id":"131812989459234816","isDeleted":1,"no":"循音科技-OP308","position":"卧位","sampleDetail":{"duration":60000,"id":"131812989459234816","wavPath":"sample/2020/12/29/1609234650746_0.wav"},"status":20,"workflow":0},{"auditName":"循音科技-疑难审核-20201228-004","coordinate":"配合","createdTime":1609084800000,"id":"131392303389474816","isDeleted":0,"labelName":"循音科技-标注包-20201228-012","no":"循音科技-OP0025","position":"立位","sampleDetail":{"duration":60000,"id":"131392303389474816","wavPath":"sample/2020/12/28/1609134353907_0.wav"},"status":20,"workflow":25},{"auditName":"循音科技-疑难审核-20201228-001","coordinate":"配合","createdTime":1608825600000,"id":"130255053540818944","isDeleted":0,"labelName":"循音科技-标注包-20201225-001","no":"循音科技-OP0010","position":"卧位","sampleDetail":{"duration":60000,"id":"130255053540818944","wavPath":"sample/2020/12/25/1608863133345_0.wav"},"status":20,"workflow":20},{"coordinate":"配合","createdTime":1608566400000,"id":"129268067921297408","isDeleted":1,"labelName":"循音科技-标注包-20201224-001","no":"循音科技-OP0004","position":"立位","sampleDetail":{"duration":60000,"id":"129268067921297408","wavPath":"sample/2020/12/22/1608627571096_0.wav"},"status":20,"workflow":20},{"coordinate":"配合","createdTime":1608480000000,"id":"128801935405875200","isDeleted":1,"labelName":"循音科技-标注包-20201228-004","no":"循音科技-IP008_20190521T012108","position":"卧位","sampleDetail":{"duration":60000,"id":"128801935405875200","wavPath":"sample/2020/12/21/1608516756237_0.wav"},"status":20,"workflow":10},{"coordinate":"配合","createdTime":1607616000000,"id":"125178372492886016","isDeleted":0,"labelName":"循音科技-标注包-20201228-006","no":"循音科技-IP0046_20190809T092040","position":"立位","sampleDetail":{"duration":60000,"id":"125178372492886016","wavPath":"sample/2020/12/11/1607652825952_0.wav"},"status":20,"workflow":10},{"coordinate":"欠配合","createdTime":1607529600000,"id":"124953837021691904","isDeleted":0,"no":"循音科技-IP0023_20190802T090856","position":"立位","sampleDetail":{"duration":60000,"id":"124953837021691904","wavPath":"sample/2020/12/10/1607599301026_0.wav"},"status":20,"workflow":0},{"coordinate":"配合","createdTime":1607529600000,"id":"124949446537510912","isDeleted":0,"no":"循音科技-IP0006_20190423t084005","position":"卧位","sampleDetail":{"duration":28528,"id":"124949446537510912","wavPath":"sample/2020/12/10/1607598269440_0.wav"},"status":20,"workflow":0},{"coordinate":"欠配合","createdTime":1607529600000,"id":"124925381349212160","isDeleted":0,"labelName":"循音科技-标注包-20201228-010","no":"循音科技-OP0005","position":"卧位","sampleDetail":{"duration":60000,"id":"124925381349212160","wavPath":"sample/2020/12/10/1607592478229_0.wav"},"status":20,"workflow":10},{"coordinate":"欠配合","createdTime":1607529600000,"id":"124925054671650816","isDeleted":1,"labelName":"循音科技-标注包-20201228-003","no":"循音科技-IP0027_20190802T092312","position":"卧位","sampleDetail":{"duration":60000,"id":"124925054671650816","wavPath":"sample/2020/12/10/1607592422551_0.wav"},"status":20,"workflow":10}]
     * totalItems : 122
     * totalPages : 13
     */

    private Integer page;
    private Integer pageSize;
    private Integer totalItems;
    private Integer totalPages;
    private List<ResultBean> result;

    @NoArgsConstructor
    @Data
    public static class ResultBean {
        /**
         * coordinate : 欠配合
         * createdTime : 1609171200000
         * id : 131812989459234816
         * isDeleted : 1
         * no : 循音科技-OP308
         * position : 卧位
         * sampleDetail : {"duration":60000,"id":"131812989459234816","wavPath":"sample/2020/12/29/1609234650746_0.wav"}
         * status : 20
         * workflow : 0
         * auditName : 循音科技-疑难审核-20201228-004
         * labelName : 循音科技-标注包-20201228-012
         */

        private String coordinate;
        private Long createdTime;
        private String id;
        private Integer isDeleted;
        private String no;
        private String position;
        private SampleDetailBean sampleDetail;
        private Integer status;//样本状态：10：导入初始；20：导入完成
        private Integer workflow; //：0：未分派；10：标注中；15：标注完成；20：审核中；25：审核完成；30：完成
        private String auditName;
        private String labelName;
        private int playStatus = 0;
        private int progress = 0;

    }
}
